package com.wanmait.demo.pojo;

import java.io.Serializable;
import java.util.Date;
import java.util.Set;

public class Admin implements Serializable {
    private Integer id;

    /**
	* 管理员账号
	*/
    private String adminName;

    /**
	* 密码
	*/
    private String adminPass;

    /**
	* 添加时间
	*/
    private Date inputTime;

    /**
	* 状态
	*/
    private Boolean enable;

    /**
	* 权限
	*/
    private Integer permission;
    private Set<Role> roles;
    private Set<Permission> permissions;

    public Set<Role> getRoles() {
        return roles;
    }

    public void setRoles(Set<Role> roles) {
        this.roles = roles;
    }

    public Set<Permission> getPermissions() {
        return permissions;
    }

    public void setPermissions(Set<Permission> permissions) {
        this.permissions = permissions;
    }

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getAdminName() {
        return adminName;
    }

    public void setAdminName(String adminName) {
        this.adminName = adminName;
    }

    public String getAdminPass() {
        return adminPass;
    }

    public void setAdminPass(String adminPass) {
        this.adminPass = adminPass;
    }

    public Date getInputTime() {
        return inputTime;
    }

    public void setInputTime(Date inputTime) {
        this.inputTime = inputTime;
    }

    public Boolean getEnable() {
        return enable;
    }

    public void setEnable(Boolean enable) {
        this.enable = enable;
    }

    public Integer getPermission() {
        return permission;
    }

    public void setPermission(Integer permission) {
        this.permission = permission;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", adminName=").append(adminName);
        sb.append(", adminPass=").append(adminPass);
        sb.append(", inputTime=").append(inputTime);
        sb.append(", enable=").append(enable);
        sb.append(", permission=").append(permission);
        sb.append("]");
        return sb.toString();
    }
}